/*
 * Copyright (c) 2020 Fraunhofer FOKUS and others. All rights reserved.
 *
 * See the NOTICE file(s) distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * Contact: mosaic@fokus.fraunhofer.de
 */
package org.eclipse.mosaic.fed.mqtt.entity;

import org.eclipse.mosaic.rti.api.RtiAmbassador;

public class StoreParameter {

    private String federateId;
    private final RtiAmbassador rti;

    public StoreParameter(String federateId, RtiAmbassador rti) {
        this.federateId = federateId;
        this.rti = rti;
    }

    public String getFederateId() {
        return federateId;
    }

    public RtiAmbassador getRti() {
        return rti;
    }

    public static class Builder {
        private String federateId;
        private RtiAmbassador rti;

        public Builder federateId(String federateId) {
            this.federateId = federateId;
            return this;
        }

        public Builder rti(RtiAmbassador rti) {
            this.rti = rti;
            return this;
        }

        public StoreParameter build() {
            return new StoreParameter(federateId, rti);
        }
    }
}
